package com.qijin.config;


import org.springframework.beans.factory.annotation.Value;

/**
 * 支付参数
 */
public class MpayConstant {


    /**
     * 商户号
     */
    public static String merchantId;

    /**
     * 私钥
     */
    public static String priKey;

    /**
     * 公钥
     */
    public static String pubKey;

    /**
     * 订单查询URL
     */
    public static String orderQueryUrl;

    /**
     * 绑卡申请URL
     */
    public static String bankcardbindUrl;

    /**
     * 签约申请URL
     */
//    public static String signCardbindUrl;

    /**
     * 卡bin
     */
    public static String bankcardbinUrl;

    /**
     * 查询银行可不可以使用
     */
    public static String bankcardSearchUrl;

    /**
     * 解绑URL
     */
    public static String bankcardUnbindUrl;


    /**
     * 绑卡申请验证URL
     */
    public static String bankcardbindverfyUrl;


    /**
     * 签约支付申请URL
     */
    public static String bankcardpayUrl;


    /**
     * 回调前缀
     */
    public static String notfyUrl;


    @Value("${mpay.merchantId}")
    public void setMerchantId(String merchantId) {
        MpayConstant.merchantId = merchantId;
    }

    @Value("${mpay.priKey}")
    public void setPriKey(String priKey) {
        MpayConstant.priKey = priKey;
    }

    @Value("${mpay.pubKey}")
    public void setPubKey(String pubKey) {
        MpayConstant.pubKey = pubKey;
    }

    @Value("${mpay.orderQueryUrl}")
    public void setOrderQueryUrl(String orderQueryUrl) {
        MpayConstant.orderQueryUrl = orderQueryUrl;
    }

    @Value("${mpay.bankcardbindUrl}")
    public void setBankcardbindUrl(String bankcardbindUrl) {
        MpayConstant.bankcardbindUrl = bankcardbindUrl;
    }


    @Value("${mpay.bankcardSearchUrl}")
    public void setBankcardSearchUrl(String bankcardSearchUrl) {
        MpayConstant.bankcardSearchUrl = bankcardSearchUrl;
    }

    @Value("${mpay.bankcardbinUrl}")
    public void setBankcardbinUrl(String bankcardbinUrl) {
        MpayConstant.bankcardbinUrl = bankcardbinUrl;
    }

    @Value("${mpay.bankcardUnbindUrl}")
    public void setBankcardUnbindUrl(String bankcardUnbindUrl) {
        MpayConstant.bankcardUnbindUrl = bankcardUnbindUrl;
    }

    @Value("${mpay.bankcardbindverfyUrl}")
    public void setBankcardbindverfyUrl(String bankcardbindverfyUrl) {
        MpayConstant.bankcardbindverfyUrl = bankcardbindverfyUrl;
    }

    @Value("${mpay.bankcardpayUrl}")
    public void setBankcardpayUrl(String bankcardpayUrl) {
        MpayConstant.bankcardpayUrl = bankcardpayUrl;
    }

    @Value("${mpay.notfyUrl}")
    public void setNotfyUrl(String notfyUrl) {
        MpayConstant.notfyUrl = notfyUrl;
    }

//    @Value("${mpay.signCardbindUrl}")
//    public void setSignCardbindUrl(String signCardbindUrl) {
//        MpayConstant.signCardbindUrl = signCardbindUrl;
//    }
}
